package mt.omid.jscap;

/****
 * Create by Omid Mehdizadeh
 * Copyright 2010, Omid Mehdizadeh
 * Based on JDiameter Open Source Project
 */

import org.jdiameter.api.MetaData;
import org.jdiameter.client.impl.MetaDataImpl;


public class SCAPCode
{

    public final static int ERICSSON_VENDOR_ID	= 193;

    public final static int RECORD_TYPE_EVENT	= 1;
    public final static int RECORD_TYPE_START	= 2;
    public final static int RECORD_TYPE_INTERIM	= 3;
    public final static int RECORD_TYPE_STOP	= 4;

    public final static int ACTION_DIRECT_DEBIT	= 0;
    public final static int ACTION_REFUND_ACCOUNT	= 1;
    public final static int ACTION_CHECK_BALANCE	= 2;
    public final static int ACTION_PRICE_ENQUIRY	= 3;

    public final static int END_USER_MSISDN	= 0;
    public final static int END_USER_IMSI	= 1;
    public final static int END_USER_SIP_URL	= 2;
    public final static int END_USER_NAI	= 3;
    public final static int END_USER_PRIVATE	= 4;

    public final static int SERVICE_ELEMENT_TERMINATION	= 0;
    public final static int CONNECTION_TO_USER_BROKEN	= 1;

    public final static int ENOUGH_CREDIT	= 0;
    public final static int NO_CREDIT		= 1;

    public final static int SERVICE_UNIT_TIME	= 0;
    public final static int SERVICE_UNIT_VOLUME	= 1;
    public final static int SERVICE_UNIT_EVENT	= 2;
    public final static int SERVICE_UNIT_MONEY	= 3;

    public final static int DIAMETER_INTERIM_INTERVAL	= 482;

    // SCAP AVPs Code
    public final static int SCAP_AVP_Currency_Code	= 544;
    public final static int SCAP_AVP_Subscription_Id	= 553;
    public final static int SCAP_AVP_Subscription_Id_Data	= 554;
    public final static int SCAP_AVP_Subscription_Id_Type	= 555;
    public final static int SCAP_AVP_Original_Subscription_Id	= 559;

    public final static int SCAP_AVP_Abnormal_Termination_Reason	= 600;
    public final static int SCAP_AVP_Final_Unit_Indication	= 601;
    public final static int SCAP_AVP_Granted_Service_Unit	= 602;
    public final static int SCAP_AVP_Cost			= 603;
    public final static int SCAP_AVP_Cost_Information		= 604;
    public final static int SCAP_AVP_Accounting_Correlation_Id	= 605;
    public final static int SCAP_AVP_Requested_Service_Unit	= 606;
    public final static int SCAP_AVP_Service_Parameter_Info	= 607;
    public final static int SCAP_AVP_Service_Parameter_Type	= 608;
    public final static int SCAP_AVP_Service_Parameter_Value	= 609;
    public final static int SCAP_AVP_Event_Timestamp		= 610;
    public final static int SCAP_AVP_Unit_Type			= 611;
    public final static int SCAP_AVP_Unit_Value			= 612;
    public final static int SCAP_AVP_Used_Service_Unit		= 613;
    public final static int SCAP_AVP_Requested_Action		= 615;
    public final static int SCAP_AVP_Exponent			= 616;
    public final static int SCAP_AVP_Value_Digits		= 617;

    public final static int SCAP_AVP_Account_Value_Before_Call	= 801;
    public final static int SCAP_AVP_Account_Value_After_Call	= 802;
    public final static int SCAP_AVP_Dedicated_Account_Id	= 803;
    public final static int SCAP_AVP_Dedicated_Account_Value_Before_Cal	= 804;
    public final static int SCAP_AVP_Dedicated_Account_Value_After_Call	= 805;
    public final static int SCAP_AVP_Used_Amount		= 806;
    public final static int SCAP_AVP_Deducted_Amount		= 807;
    public final static int SCAP_AVP_Dedicated_Account_Information	= 808;

    // Ericsson SCAP Result Codes

    public final static int SCAP_DIAMETER_END_USER_SERVICE_DENIED	= 4241;
    public final static int SCAP_DIAMETER_END_USER_NOT_FOUND		= 5241;
    
 // Ericsson Service Parameter Info
    public final static int SRV_PRM_INF_SERVICE_PROVIDER_ID = 0;
    public final static int SRV_PRM_INF_EXTENSION_NUMBER_1 = 1;
    public final static int SRV_PRM_INF_EXTENSION_NUMBER_2 = 2;
    public final static int SRV_PRM_INF_EXTENSION_NUMBER_3 = 3;
    public final static int SRV_PRM_INF_EXTENSION_NUMBER_4 = 4;
    public final static int SRV_PRM_INF_EXTENSION_TEXT = 5;
    public final static int SRV_PRM_INF_GPRS_QUALITY_OF_SERVICE = 6;
    public final static int SRV_PRM_INF_REDIRECTING_PARTY_NUMBER = 7;
    public final static int SRV_PRM_INF_ORIGINATING_LOCATION_INFORMATION = 8;
    public final static int SRV_PRM_INF_TERMINATING_LOCATION_INFORMATION = 9;
    public final static int SRV_PRM_INF_REGION_CHARGING_ORIGIN = 10;
    public final static int SRV_PRM_INF_SUBSCRIPTION_TYPE = 11;
    public final static int SRV_PRM_INF_SMS_DELIVERY_STATUS = 12;
    public final static int SRV_PRM_INF_TIMEZONE = 13;
    public final static int SRV_PRM_INF_TRAFFIC_CASE = 14;
    public final static int SRV_PRM_INF_DEDICATED_ACCOUNT_ID = 15;
    public final static int SRV_PRM_INF_CALLING_PARTY_NUMBER = 16;
    public final static int SRV_PRM_INF_CALLED_PARTY_NUMBER = 17;
    public final static int SRV_PRM_INF_TELE_SERVICE_CODE = 18;
    public final static int SRV_PRM_INF_SERVICE_KEY = 19;

}
